package com.jvyou.thread.d06daemon;

/**
 * @author 橘柚
 * @version 1.0-SNAPSHOT
 * @Date 2024/7/30 17:31
 * @Description 守护线程测试
 */
public class DaemonDemo {

    public static void main(String[] args) {
        MyThread1 t1 = new MyThread1();
        t1.start();
        MyThread2 t2 = new MyThread2();
        // 设置 t2 为守护线程
        t2.setDaemon(true);
        t2.start();
    }
}
